package com.kpmg.datalake.accountcheck.model;

import java.math.BigDecimal;

public class AccountCheckJournal extends BaseAccountCheck {

	private static final long serialVersionUID = 1700781972273166628L;
	
	/**
	 * 期间, 可以理解为月份
	 */
	private String period;
	
	/**
	 * 日期天
	 */
	private String day;
	
	/**
	 * 凭证日期
	 */
	private String voucherDate;
	
	/**
	 * 说明
	 */
	private String explanation;
	
	/**
	 * 借款金额
	 */
	private BigDecimal debitAmount;
	
	/**
	 * 本地借款金额 - 显示该列
	 */
	private BigDecimal localDebitAmount;
	
	/**
	 * 贷款金额
	 */
	private BigDecimal creditAmount;
	
	/**
	 * 本地贷款金额 - 显示该列
	 */
	private BigDecimal localCreditAmount;

	public String getPeriod() {
		return period;
	}

	public void setPeriod(String period) {
		this.period = period;
	}

	public String getDay() {
		return day;
	}

	public void setDay(String day) {
		this.day = day;
	}

	public String getExplanation() {
		return explanation;
	}

	public void setExplanation(String explanation) {
		this.explanation = explanation;
	}

	public BigDecimal getDebitAmount() {
		return debitAmount;
	}

	public void setDebitAmount(BigDecimal debitAmount) {
		this.debitAmount = debitAmount;
	}

	public BigDecimal getLocalDebitAmount() {
		return localDebitAmount;
	}

	public void setLocalDebitAmount(BigDecimal localDebitAmount) {
		this.localDebitAmount = localDebitAmount;
	}

	public BigDecimal getCreditAmount() {
		return creditAmount;
	}

	public void setCreditAmount(BigDecimal creditAmount) {
		this.creditAmount = creditAmount;
	}

	public BigDecimal getLocalCreditAmount() {
		return localCreditAmount;
	}

	public void setLocalCreditAmount(BigDecimal localCreditAmount) {
		this.localCreditAmount = localCreditAmount;
	}
	
	public String getVoucherDate() {
		if(this.voucherDate == null) {
			return this.acgYr + "/" + this.period + "/" + this.day;
		}
		return this.voucherDate;
	}

	public void setVoucherDate(String voucherDate) {
		this.voucherDate = voucherDate;
	}
	
}
